<template>
  <div>
      <mt-swipe :auto="4000">
        <mt-swipe-item v-for="item in imgList" :key="item.id">
          <img :src="item.img" alt="" />
        </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>

export default {
  props: ['imgList']
}
</script>

<style lang="scss" scoped>
// mt-swipe 的内置class  下面这些class也是他子类的内置class
.mint-swipe {
  height: 200px;
  color: #fff;
  
  img {
    width: 100%;
    height: 100%;
  }
}

</style>